home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5945 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: newshost.lanl.gov!tanmoy
  2. From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Looking for a clear screen function
  5. Date: 20 Feb 1996 15:46:55 GMT
  6. Organization: Los Alamos National Laboratory
  7. Message-ID: <TANMOY.96Feb20084655@qcd.lanl.gov>
  8. References: <4gaeba$d9h@nkosi.well.com> <3129AC77.5F25@fokus.gmd.de>
  9. NNTP-Posting-Host: qcd.lanl.gov
  10. Mime-Version: 1.0
  11. Content-Type: text
  12. In-reply-to: Watson's message of Tue, 20 Feb 1996 12:11:51 +0100
  13.  
  14. In article <3129AC77.5F25@fokus.gmd.de> Watson <sayegh@fokus.gmd.de>
  15. writes: 
  16.    > Does anyone know of a clear screen function to use both in turboC++ on
  17.    > a PC and one to use in standard C for Unix machines
  18.  
  19.    #include<stdio.h>
  20.    for (int i=0;i<25;i++)
  21.        printf("\n");
  22.  
  23.    This works at least on a screen with 25
  24.    lines :-)
  25.  
  26. Did you try it on a Tektronix 4010 screen?
  27.  
  28.    There's no standard function to clear
  29.    the screen. In TurboC I guess it's clrscr()
  30.    (prototyped in <conio.h>), with Unix it's
  31.    clear()/wclear() (<curses.h>).
  32.  
  33. In these cases, a reference to the FAQ is also useful.
  34.  
  35. Cheers
  36. Tanmoy
  37. --
  38. tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
  39. Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
  40. Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
  41. <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
  42. internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
  43. fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
  44.